package com.kgc.basic.pojo;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kgc.basic.annotation.Validation;
//import lombok.AllArgsConstructor;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

//@Data
//@AllArgsConstructor
//@NoArgsConstructor
//@ToString
public class Provider {
    @ExcelIgnore
    private Integer id;

    @ExcelProperty("供应商编码")
    @Validation(required = true, minLength = 3, maxLength = 10, message = "供应商编码长度应在3到10字符")
    private String code;

    @ExcelProperty("供应商名称")
    @Validation(required = true, minLength = 2, maxLength = 50, message = "供应商名称长度应在2到50个字符")
    private String name;

    @ExcelProperty("助记名")
    @Validation(required = true, minLength = 2, maxLength = 50, message = "助记名长度应在2到50个字符")
    private String mnemonic;

    @ExcelProperty("供应商地址")
    @Validation(required = true, maxLength = 100, message = "地址长度不能超过100个字符")
    private String address;

    @ExcelProperty("供应商电话号码")
    @Validation(required = true, regex = "^1[3-9]\\d{9}$", message = "请输入有效的11位手机号")
    private String phone;

    @ExcelProperty("业务地区")
    @Validation(maxLength = 100, message = "业务地区长度不能超过100个字符")
    private String area;

    @ExcelIgnore
    private Integer createUid;

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    @ExcelIgnore
    private Integer updateUid;

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

    @ExcelProperty("交易金额")
    @Validation(required = true, message = "交易金额不能为空")
    private String transactions;

    @ExcelIgnore
    private Integer isDelete;

    @ExcelIgnore
    private Integer isEnable;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMnemonic() {
        return mnemonic;
    }

    public void setMnemonic(String mnemonic) {
        this.mnemonic = mnemonic;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Integer getCreateUid() {
        return createUid;
    }

    public void setCreateUid(Integer createUid) {
        this.createUid = createUid;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateUid() {
        return updateUid;
    }

    public void setUpdateUid(Integer updateUid) {
        this.updateUid = updateUid;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getTransactions() {
        return transactions;
    }

    public void setTransactions(String transactions) {
        this.transactions = transactions;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }
}
